import type { HttpResponse } from "@/utils/request";
import httpClient from "@/utils/request";

// 路由结果数据类型
export type RoutesData = Array<any>;

// 路由响应类型
export type RoutesResult = HttpResponse<RoutesData>;

/** 获取异步路由 */
export const getAsyncRoutes = () => {
  return httpClient.get<RoutesResult>("/get-async-routes");
};
